<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018\11\28 0028
 * Time: 10:07
 */
require_once "MongoModel.php";

$mongo_client = new MongoModel();

$document = ['_id' => new MongoDB\BSON\ObjectID, 'name' => 'content_id', 'id' => 1];
$namespace = "swoole.ids";

$mongo_client->add($document, $namespace);